home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 March / PCgo 2008-03 (CD).iso / interface / static / it2008 / gewinne.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2007-09-18  |  1.1 KB  |  39 lines

  1. function create_txt(tooltip_txt)
  2. {
  3.    var _loc1_ = _root;
  4.    _loc1_.tooltip.createTextField("head",1,0,20,breite,10);
  5.    _loc1_.tooltip.head.multiline = true;
  6.    _loc1_.tooltip.head.selectable = false;
  7.    _loc1_.tooltip.head.wordWrap = true;
  8.    _loc1_.tooltip.head.autoSize = "left";
  9.    _loc1_.tooltip.head.html = true;
  10.    _loc1_.tooltip.head.htmlText = tooltip_txt;
  11.    _loc1_.tooltip.head.setTextFormat(txtFormat);
  12.    _loc1_.tooltip.breite = 200;
  13.    _loc1_.tooltip.back._width = _loc1_.tooltip.breite;
  14.    _loc1_.tooltip.hoehe = _loc1_.tooltip.head.textHeight;
  15.    _loc1_.tooltip.back._height = _loc1_.tooltip.hoehe + 5;
  16. }
  17. a_font = "<font color= \'#FF0000\'>";
  18. b1_font = "<b>";
  19. b2_font = "</b>";
  20. e_font = "</font>";
  21. d_break = "<br>";
  22. txtFormat = new TextFormat();
  23. txtFormat.size = 10;
  24. txtFormat.font = "Arial";
  25. breite = 200;
  26. startToolTip = function()
  27. {
  28.    if(_root.tooltip.head.text.length > 2)
  29.    {
  30.       _root.tooltip._visible = true;
  31.    }
  32. };
  33. stopToolTip = function()
  34. {
  35.    _root.tooltip._visible = false;
  36.    _root.tooltip.head.htmlText = "";
  37. };
  38. stop();
  39.